<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".settings.connection.ConnectionActivity">

    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="#ffffff"
        app:layout_constraintBottom_toTopOf="@+id/connections_rg" />

    <RadioGroup
        android:id="@+id/connections_rg"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <com.google.android.material.radiobutton.MaterialRadioButton
            android:id="@+id/official_host_rb"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text='Connect to official host "libretranslate.com"'
            android:textSize="19.854dp"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />
        <EditText
            android:id="@+id/official_host_edit_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="text"
            android:visibility="gone"
            android:hint="You need get API key"
            android:textSize="19.854dp"
            />

        <com.google.android.material.radiobutton.MaterialRadioButton
            android:id="@+id/custom_host_rb"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Custom host (for example libretranslate.de)"
            android:textSize="19.854dp"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/official_host_rb" />

        <EditText
            android:id="@+id/custom_host_edit_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="Host or IP address"
            android:inputType="text"
            android:textSize="19.854dp"
            android:visibility="gone" />

    </RadioGroup>

</androidx.constraintlayout.widget.ConstraintLayout>